package com.marktrace.service.impl;

import com.marktrace.dao.TEquipmentMapper;
import com.marktrace.entity.TEquipment;
import com.marktrace.service.EquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EquipmentServiceImpl implements EquipmentService {

    @Autowired
    private TEquipmentMapper tEquipmentMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tEquipmentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TEquipment record) {
        return tEquipmentMapper.insert(record);
    }

    @Override
    public TEquipment selectByPrimaryKey(Integer id) {
        return tEquipmentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TEquipment> selectAll() {
        return tEquipmentMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(TEquipment record) {
        return tEquipmentMapper.updateByPrimaryKey(record);
    }
}
